home *** CD-ROM | disk | FTP | other *** search
- /*=========================================================================
-
- ATOC comment module
-
- =========================================================================*/
-
- #include <stdio.h>
- #include "atoc.h"
-
-
- /*-------------------------------------------------------------------------
- comment( s ) replaces any / / style comments with a standard one.
- -------------------------------------------------------------------------*/
- comment( s )
- char *s;
- {
- char *cp, *strstr();
-
- if ( ( cp = strstr( s, "//" ) ) != NULL )
- {
- *( cp + 1 ) = '*';
- strcat( cp, " */" );
- }
- }
- /*=======================================================================*/